const state = {
  selectedTaskArr: [],
  taskDetailFresh: false, // 作业详情页的刷新 标识
}

const mutations = {
  SET_SELECTED_TASK_ARR: (state, val) => {
    state.selectedTaskArr = val
  },
  SET_TASK_DETAIL_FRESH: (state, val) => {
    state.taskDetailFresh = val
  },
}

const actions = {
  setSelectedTaskArr({ commit }, data) {
    commit('SET_SELECTED_TASK_ARR', data)
  },
  // 作业详情页的刷新 标识
  setTaskDetailFresh({ commit }, data) {
    commit('SET_TASK_DETAIL_FRESH', data)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}